#include<stdio.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
int main()
{

char buff[128];
ssize_t s=read(0,buff,sizeof(buff));//从标准输入里面读取内容
  if(s>0)
  {
    write(1,buff,strlen(buff));//向标准输出写内容，即打印到显示屏上
  }
return 0;





















  //int fd1=open("eg1.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
  //int fd2=open("eg2.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
  //int fd3=open("eg3.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
  //int fd4=open("eg4.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
  //int fd5=open("eg5.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
  //
  //printf("open success,fd1:%d\n",fd1);
  //printf("open success,fd2:%d\n",fd2);
  //printf("open success,fd3:%d\n",fd3);
  //printf("open success,fd4:%d\n",fd4);
  //printf("open success,fd5:%d\n",fd5);
  //close(fd1);
  //close(fd2);
  //close(fd3);
  //close(fd4);
  //close(fd5);
  //
} 
